package observer;

/**
 * @Author: linKe
 * @Date: 2022/1/15 14:12
 * @FileName: CatObserver
 * @version: 1.0
 * @Description: 小猫观察者
 */
public class CatObserver implements Observer {

    public CatObserver(Subject subject) {
        subject.registryObserver(this);
    }

    @Override
    public void update(String news) {
        System.out.println("喵了个咪的 " + news);
    }

}